package entities;

import javax.swing.ImageIcon;

@SuppressWarnings("serial")
public abstract class PowerUp extends MovableEntity {
	
	

	ImageIcon icon;
	
	/**
	 * this class shouldn't be instantiated and its constructor just calls the MovableEntity constructor
	 * @param x
	 * @param y coordinates
	 * @param dx
	 * @param dy coordinates
	 */
	public PowerUp(int x, int y, int dx, int dy) {
		super(x, y, dx, dy);
	}
	public void pickedUp(Defender d){
		
	}
	
	/*public PowerUp(int x, int y, PowerType type, float xScale, float yScale) {
		super(x, y);
		Image image = logic.Utilities.loadImage("res/" + type.toString() + "PU.png");
		if(xScale != 1 || yScale != 1) {
			image = Utilities.resizeImage(xScale, yScale, "res/" + type.toString() + "PU.png");
		}
		icon = new ImageIcon(image);
		this.setIcon(icon);
		this.width = image.getWidth(null);
		this.height = image.getHeight(null);
		this.setBounds((int)this.x, (int)this.y, this.width, this.height);
	}
	
	public PowerUp(int x, int y, int dx, int dy, PowerType type, float xScale, float yScale) {
		super(x, y, dx, dy);
		Image image = logic.Utilities.loadImage("res/" + type.toString() + "PU.png");
		if(xScale != 1 || yScale != 1) {
			image = Utilities.resizeImage(xScale, yScale, "res/" + type.toString() + "PU.png");
		}
		icon = new ImageIcon(image);
		this.setIcon(icon);
		this.width = image.getWidth(null);
		this.height = image.getHeight(null);
		this.setBounds((int)this.x, (int)this.y, this.width, this.height);
	}*/
}
